<?php
namespace app\index\controller;
use think\Db;
use \think\Request;
class Order extends Person
{
    public function index()
    {
        /*$info = Request::instance()->header();
		echo $info['accept'].'<br />';
		echo $info['accept-encoding'].'<br />';
		echo $info['user-agent'].'<br />';
		echo '111';*/
        $a_list = Db::table('goods_activity_type') -> select();
        //banner
        $banner = Db::table('banner') -> select();
        $type = Db::table('goods_type') -> where('goods_type_level',1)->group('goods_group') -> select();
        $type_one = Db::table('goods_type') -> where('goods_type_level',1) -> select();
        $type_t = Db::table('goods_type') -> where('goods_type_level',2) -> select();


       //halt($type_t);die;
        $this->assign('banner',$banner);
        $this->assign('a_list',$a_list);
        $this->assign('type',$type);
        $this->assign('type_one',$type_one);
        $this->assign('type_t',$type_t);
        return $this -> fetch();
    }
    public function return_url(){
        var_dump($_POST);
        halt($_GET);
        return $this->fetch();
    }
    public function notify_url(){
        halt($_POST);
        return $this->fetch();
    }

}
